package com.indexingsystem.boss.admin.mapper;

import com.indexingsystem.boss.Vo.WebChatSharesVo;
import com.indexingsystem.boss.entity.WechatShares;
import com.indexingsystem.boss.entity.WechatSharesExample;
import com.sdicons.json.validator.impl.predicates.Int;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface WechatSharesMapper {
    long countByExample(WechatSharesExample example);

    int deleteByExample(WechatSharesExample example);

    int deleteByPrimaryKey(String resId);

    int insert(WechatShares record);

    int insertSelective(WechatShares record);

    List<WechatShares> selectByExampleWithBLOBs(WechatSharesExample example);

    List<WechatShares> selectByExample(WechatSharesExample example);

    WechatShares selectByPrimaryKey(String resId);

    int updateByExampleSelective(@Param("record") WechatShares record, @Param("example") WechatSharesExample example);

    int updateByExampleWithBLOBs(@Param("record") WechatShares record, @Param("example") WechatSharesExample example);

    int updateByExample(@Param("record") WechatShares record, @Param("example") WechatSharesExample example);

    int updateByPrimaryKeySelective(WechatShares record);

    int updateByPrimaryKeyWithBLOBs(WechatShares record);

    int updateByPrimaryKey(WechatShares record);
	
	
	/**
     * 根据微享id与资源id查询列表
     * @param 
     * @return
     */
    List<WebChatSharesVo> getWechatShardList(WebChatSharesVo webChatSharesVo);
    
   
    
    /**
     * 根据微享id与资源id查询列表数量 
     * @param tablesQueryVo
     * @return
     */
    Integer getWechatShardListCount(WebChatSharesVo webChatSharesVo);
    
    
    /**
     * 根据业务RefId查询列表数量 
     * @param tablesQueryVo
     * @return
     */
    WechatShares getWechatShardListCountByRefId(WebChatSharesVo webChatSharesVo);

	WechatShares getWechatShardModelByRefId(WebChatSharesVo webChatSharesVo);
	
    List<WechatShares> getWechatShardModelByRefIdList(WebChatSharesVo webChatSharesVo);
    Integer getWechatShardModelByRefIdCountList(WebChatSharesVo webChatSharesVo);
    
    Integer getWechatShardModelByRefIdListChildCount(WebChatSharesVo webChatSharesVo);
    
    
    
    List<WechatShares> getWechatShardModelByRefIdListByChild(WebChatSharesVo webChatSharesVo);
    Integer getWechatShardModelByRefIdListByChildCount(WebChatSharesVo webChatSharesVo);
    
    List<WechatShares> getWechatShardModelByRefIdListByParent(WebChatSharesVo webChatSharesVo);
    Integer getWechatShardModelByRefIdCountListByParent(WebChatSharesVo webChatSharesVo);
    Integer getWechatShardModelByRefIdCountListByChild(WebChatSharesVo webChatSharesVo);
    
    
    List<WechatShares> getWechatShardModelByRefIdListByChildGroupPeriodName(WebChatSharesVo webChatSharesVo);
    Integer getWechatShardModelByRefIdListByChildGroupPeriodNameCount(WebChatSharesVo webChatSharesVo);
    
    
    
    List<WechatShares> getPavilionRelationsForWebChatList(WebChatSharesVo webChatSharesVo);
    Integer getPavilionRelationsForWebChatCount(WebChatSharesVo webChatSharesVo);
    
	
}